﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        What is Pepper?</h2>
    <p>
        <img class="image" src="../../Content/img/pepperscreenshot.png" />Pepper is a Visual
        Studio 2010 add-in which allows you to easily export your VS settings to the cloud
        (powered by Azure) and then downloaded & imported elsewhere.</p>
    <p>
        This can be used to backup settings or to share settings across various machines!
    </p>
    <hr />
    <h2>
        Manage your existing uploaded settings</h2>
    <div class="form">
        <% if (ViewData["pepper-message"] != null)
           {%>
        <div class="error">
            <%=ViewData["pepper-message"]%></div>
        <%} %>
        <% using (Html.BeginForm())
           {  %>
        <div class="input">
            <div class="label">
                Username</div>
            <%= Html.TextBox("username") %></div>
        <div class="input">
            <div class="label">
                Password</div>
            <%= Html.Password("password") %></div>
        <input type="submit" value="Login" />
        <%} %>
    </div>
    <% if (ViewData["settings-public"] != null)
       { %>
    <div class="form">
        <div class="menuitem"><a href="/Settings/Download">Download Settings</a></div> <div class="menuitem"><a href="/Settings/Clear">Clear
            Settings</a></div>
        <% if ((bool)ViewData["settings-public"])
           { %>
        <p>Your public settings link: <code>/Settings/DownloadPublic?id=<%=ViewData["userid"]%></code></p>
        <%} %>
    </div>
    <%} %>
</asp:Content>
